package patterns.actions.command.gui;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JPanel;

public class RedCommand extends JButton implements MyCommand {

	private JPanel p;

	RedCommand(String name, JPanel p) {
		super(name);
		this.p = p;
	}

	@Override
	public void execute() {

		this.p.setBackground(Color.red);
	}

}
